package com.jzo2o.customer.controller.worker;


import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.checkerframework.checker.units.qual.A;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController()
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "服务人员认证")
public class workerCertificationController {

    @Resource
    IWorkerCertificationService workerCertificationService;


    @PostMapping
    @ApiOperation("实名认证")
    public void audit(@RequestBody WorkerCertificationAuditAddReqDTO workerCertificationAuditAddReqDTO) {
        workerCertificationService.audit(workerCertificationAuditAddReqDTO);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("获取驳回原因")
    public String rejectReason() {
        return workerCertificationService.getRejectReason();
    }

}
